package com.njupt.sellsec.config;

import com.njupt.sellsec.handler.AccessInterceper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

/**
 * @Author: XJL
 * @Description:
 * @Date: Create in 18:37 2018/8/2
 * @Modified By:
 *
 **/
@Configuration
public class WebConfig extends WebMvcConfigurerAdapter{
    @Autowired
    private AccessInterceper accessInterceper;


    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(accessInterceper);
    }
}
